package com.liming.common.pojo.vo.order.mini;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author liming
 * @date 2025/4/9
 */
@Data
@Schema(description = "小程序 - 订单详情VO")
public class MiniOrderDetailVO {

    @Schema(description = "订单ID")
    private Long id;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "优惠券ID")
    private Long couponId;

    @Schema(description = "优惠券名称")
    private String couponName;

    @Schema(description = "优惠券优惠金额")
    private BigDecimal couponAmount;

    @Schema(description = "订单优惠后金额")
    private BigDecimal realAmount;

    @Schema(description = "订单原价金额")
    private BigDecimal totalAmount;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否为线下自提，0 表示否，1 表示是")
    private Integer pickup;

    @Schema(description = "订单状态")
    private Integer status;

    @Schema(description = "订单项")
    private List<MiniOrderItemVO> items;

    @Schema(description = "支付方式 1：微信支付")
    private Integer payType;

    @Schema(description = "联系人")
    private String contactName;

    @Schema(description = "联系电话")
    private String contactPhone;

    @Schema(description = "联系地址")
    private String contactAddress;

    @Schema(description = "下单时间")
    private LocalDateTime createTime;

    @Schema(description = "订单是否能够评价（前提是已完成订单）： 0 不能 1能 ")
    private Integer canComment;
}
